import { ref } from 'vue';
import { defineStore } from 'pinia';

export const useSystemStore = defineStore(
  'pinia',
  () => {
    const collapse = ref(false);

    const changeCollapse = () => {
      collapse.value = !collapse.value;
    };

    return { collapse, changeCollapse };
  },
  {
    persist: true,
  },
);
